$OpenBSD: patch-main_php_ini_c,v 1.3 2017/01/22 17:01:32 martijn Exp $
--- main/php_ini.c.orig.port	Tue Jan 17 12:53:05 2017
+++ main/php_ini.c	Fri Jan 20 07:38:39 2017
@@ -572,7 +572,7 @@ int php_init_config(void)
 
 		/* If still no ini file found, search for php.ini file in search path */
 		if (!fh.handle.fp) {
-			fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path);
+			fh.handle.fp = php_fopen_with_path("php-${PV}.ini", "r", php_ini_search_path, &opened_path);
 			if (fh.handle.fp) {
 				fh.filename = ZSTR_VAL(opened_path);
 			}
